#ifndef SCROLLING_H
#define SCROLLING_H
#include "VisableObject.h"

class ScrollingObject : public VisableObject
{

public:
	ScrollingObject(sf::Vector2f startPos = sf::Vector2f(0, 0), sf::Vector2f startVel = sf::Vector2f(0, 0), const char* fileName = "images/defaultImage.png", float scale = 1.0f) : VisableObject(startPos, startVel, fileName, scale)
	{
		isScrolingObject = true;
	};
	~ScrollingObject(){};

	void Update(float deltaT)
	{
		pos.x -= 120.0f * deltaT;
		if (pos.x < -100.0f)
			pos.x = 1460.0f;
	};
};

#endif // SCROLLING_H